package com.hdcircles.autoform.presenter.contract;

import com.hdcircles.autoform.base.BasePresenter;
import com.hdcircles.autoform.base.BaseView;
import com.hdcircles.autoform.model.bean.FormBean;
import com.hdcircles.autoform.model.bean.QuestionBean;
import com.hdcircles.autoform.model.bean.User;

import java.util.List;

/**
 * Created by hdcircles on 2016/11/18.
 */

public interface UserListContract {

    interface View extends BaseView{
        void ShowUserList(List<User> userList);

        void getQuestion(List<QuestionBean> questionList);

        void setQuestion(List<QuestionBean> questionList);

        void sendSuccess(String msg,int index);

        void updateSuccess(String msg);

        void shareSuccess(String msg);
    }

    interface Presenter extends BasePresenter<View>{

        void getUsers();

        void getQuestion(String formId);

        void getChoose(QuestionBean question);

        void send2User(FormBean formBean,int index);

        void updateInitForm(String formId,int shared);

        void shareForm(String formId,List<String> userEmailList);
    }
}
